home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Graphics⁄Sound / Contours source / fractal.h < prev    next >
Text File  |  1985-09-03  |  2KB  |  52 lines

  1. #define DEBUG -7        /* Includes debugging printer. */
  2.                 /* Use -7 for modem port, -9 for printer. */
  3. #define DEVELOP "Frac:Fractal Contours"    /* Resource file to open for
  4.                        faster program development. */
  5.  
  6. #define LASTMENU 4        /* Number of menus. */
  7. #define APPLEMENU 1        /* Menu ID for Apple menu. */
  8. #define FILEMENU 2        /* Menu ID for File menu. */
  9. #define EDITMENU 3        /* Menu ID for Edit menu. */
  10. #define SETUPMENU 4        /* Menu ID for parameter setting. */
  11.  
  12. #define ANOTHER 1        /* Items in the File menu. */
  13.  /*-------*/
  14. #define SAVEPAINT 3
  15.  /*-------*/
  16. #define IQUIT 5
  17.  
  18. #define SETUP 1            /* Items in the Setup menu. */
  19.  
  20. #define INFOSCR1 256        /* Resource ID for info dialog. */
  21. #define INFOSCR2 257        /*   " info #2 dialog. */
  22.  
  23. #define INFOOK 1        /* OK Button */
  24. #define INFOMORE 2        /* More Info Button */
  25.  
  26.  
  27. #define WINDOWID 260        /* Resource ID for my window. */
  28.  
  29.  
  30. /* Setup Dialog Stuff */
  31. #define STPDLGID 258        /* ID of our setup dialog in resource
  32.                    fork. */
  33. #define SETUPOK 1        /* OK Button */
  34. #define SETUPCAN 2        /* CANCEL Button */
  35. #define SETUPLEVL 4        /* Level Text field */
  36. #define SETUPMTN 5        /* Mountain RadButton */
  37. #define SETUPHIL 6        /* Hills RadButton */
  38. #define SETUPWATR 7        /* Water RadButton */
  39.  
  40. #define MAXLEVEL 7        /* Maximum level of detail. */
  41. #define DEFLTLEV 4        /* Default level. */
  42. #define DEFLTTYP SETUPWATR    /* Default type. */
  43.  
  44. #define XDIM 129        /* 2^MAXLEVEL+1 */
  45. #define YDIM 65            /* 2^(MAXLEVEL-1)+1 */
  46.  
  47. int (*points)[XDIM][YDIM];    /* The array of points to be subdivided. */
  48. int xmax, ymax;
  49. int conttype;             /* Contour type. */
  50. int contlevl;            /* Level of detail. */
  51.  
  52.